package com.learn.algorithm.designpattern.builder;

import java.util.StringJoiner;

/**
 * @author wangxing
 * @version 2020/8/20 6:13 Administrator
 */
public class Product {
    String productName,factoryName,park1,park2,park3,park4;

    public Product() {
    }

    public Product(String productName, String factoryName, String park1, String park2, String park3, String park4) {
        this.productName = productName;
        this.factoryName = factoryName;
        this.park1 = park1;
        this.park2 = park2;
        this.park3 = park3;
        this.park4 = park4;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getFactoryName() {
        return factoryName;
    }

    public void setFactoryName(String factoryName) {
        this.factoryName = factoryName;
    }

    public String getPark1() {
        return park1;
    }

    public void setPark1(String park1) {
        this.park1 = park1;
    }

    public String getPark2() {
        return park2;
    }

    public void setPark2(String park2) {
        this.park2 = park2;
    }

    public String getPark3() {
        return park3;
    }

    public void setPark3(String park3) {
        this.park3 = park3;
    }

    public String getPark4() {
        return park4;
    }

    public void setPark4(String park4) {
        this.park4 = park4;
    }

    @Override
    public String toString() {
        return new StringJoiner(", ", Product.class.getSimpleName() + "[", "]")
                .add("productName='" + productName + "'")
                .add("factoryName='" + factoryName + "'")
                .add("park1='" + park1 + "'")
                .add("park2='" + park2 + "'")
                .add("park3='" + park3 + "'")
                .add("park4='" + park4 + "'")
                .toString();
    }
}
